{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style >
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }

    td {
        word-wrap: break-word;
        word-break: break-all;
        max-width: 700px;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <form class="form-horizontal" method="post">
                        <table data-toggle="table">
                            <thead>
                            <tr>
                                <!-- <th class="bs-checkbox"><input type="checkbox" id="delidAll"></th> -->
                                <!-- <th data-align="center">ID</th> -->
                                <th data-align="center">应征方</th>
                                <th>应征内容</th>
                                <th data-align="center">时间</th>
                                <th data-align="center">管理</th>
                            </tr>
                            </thead>
                            <tbody id="form">
                            {volist name="data" id="v"}
                            <tr id="id{$v.id}" class="class">
                                <!-- <td id="delid" ><input name="delAll[]" type="checkbox" value="{$v.id}"></td> -->
                                <!-- <td>{$v.id}</td> -->
                                <td><a onClick="add('{:url('member/add',['id'=>$v['user_id'],'url'=>-1])}')" style="color:#40BCF7">{:getname($v.user_id)}</a><br > ({$v.user_id})</td>
                                <td>{$v.content}</td>
                                <td>{$v.time}</td>
                                    <td>
                                        <a onclick="chat('{$v.user_id},{$v.touser_id}')" style="color:#40BCF7">查看对话</a>
                                    </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>
<div id="LianmaiDetail" style="text-align:center;display:none;margin: 0px 30px;padding:10px 100px">
</div>
<script>
    $(document).ready(function(){
        $('#delidAll').click(function(){
            $('input[type=checkbox]').each(function(){
                var self=$(this);
                if(!self.prop('checked')){
                    self.prop('checked',true);
                }else{
                    self.prop('checked',false);
                }
            });
        })
    });
    function alla(){
        var all = $(".form-horizontal").serialize();

        ajaxFun("post",'{:url("delGroupAll")}',all,'json',function(ret){
            if(ret){
                swal_msg('操作成功')
                window.location.reload();
            }
        })
    }

    function chat(uids)
    {
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.open({
                title :'预览',
                area: ['100%', '100%'],
                type: 2,
                content: '{:url("usertalk/records")}?search=userid&name='+uids
            });
        });
    }
</script>
{include file="public/footer" /}

